import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import store from "./redux/store"
ReactDOM.render(
  <React.StrictMode>
      {" "}
      <App />{" "}
  </React.StrictMode>,
  document.getElementById("root")
);

reportWebVitals();

      // 监测redux中的变化，只要变化就更新渲染
      store.subscribe(()=>{
          // 调用它，他就会更新页面
          ReactDOM.render(<App />, document.getElementById("root"))
      })
